import { art } from "../prefix";
import { bigImg } from "../prefix";
const uploadVideos = [
  {
    // 上传视频封面
    name: "uploadVideosCover",
    url: art + "/art_video/:data_id",
    method: "POST",
    headers: {
      "Content-Type": "multipart/form-data",
    },
  },
  // {
  //   // 上传视频
  //   name: "uploadVideos",
  //   url: art + "/art_video/:data_id",
  //   method: "POST",
  //   headers: {
  //     "Content-Type": "multipart/form-data",
  //   },
  // },
  // 上传大图
  {
    name: "uploadBigImg",
    url:
      bigImg + "/upload_data?id=/upload&token=79fb054e94d0284966a416a852a6924a",
    method: "POST",
  },
  // 上传大图
  {
    name: "createdBigImg",
    url: bigImg + "/big_image?token=79fb054e94d0284966a416a852a6924a",
    method: "POST",
  },
  // 文件管理服务 上传视频、音频
  {
    name: 'uploadVideo',
    url: art + '/upload_video',
    method: "POST",
      headers: {
        "Content-Type": "multipart/form-data",
      },
  },
  // 艺术家视频上传
  {
    name: 'createArtVideo',
    url: art + '/art_video',
    method: "POST",
      headers: {
        "Content-Type": "multipart/form-data",
      },
  },
  // 删除艺术家视频
  {
    name: 'delArtVideo',
    url: art + '/art_video/:data_id',
    method: "DELETE"
  },
  {
    name: 'updateArtVideo',
    url: art + '/art_video/:data_id',
    method: "POST",
      headers: {
        "Content-Type": "multipart/form-data",
      },
  },
  {
    name: 'getVideoInfo',
    url: art + '/art_video/:data_id',
    method: "GET",
  }
];

export default uploadVideos;
